package com.liu.common.exception;

/**
 * ClassName BizCodeEnum
 * Description
 * Author Xing
 * Date 2024/3/17 14:26
 **/
public class BizCodeEnum {

    /**
     * 用户微服务异常枚举
     */
    public enum UserExceptionEnum implements IErrorCode{
        USER_NOT_EXIST(1001, "用户不存在");

        private final int code;
        private final String message;

        UserExceptionEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }

        @Override
        public int getCode() {
            return code;
        }

        @Override
        public String getMsg() {
            return message;
        }
    }
}
